package asava.trees;

/**
 * @author Tim Richter
 */
public final class Case extends Tree {
    public Tree key;
    public Tree body;

    public Case(final Tree key,
                final Tree body) {
        this.key = key;
        this.body = body;
    }

    @Override
    public int kind() {
        return TreeKind.CASE;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
